package com.zq.gmall.user.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zq.gmall.bean.UmsMemberReceiveAddress;
import com.zq.gmall.service.IUmsMemberReceiveAddressService;
import com.zq.gmall.user.mapper.UmsMemberReceiveAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 会员收货地址表 服务实现类
 * </p>
 *
 * @author zheng
 * @since 2020-02-15
 */
@Service
public class UmsMemberReceiveAddressServiceImpl extends ServiceImpl<UmsMemberReceiveAddressMapper, UmsMemberReceiveAddress> implements IUmsMemberReceiveAddressService {

    @Autowired
    UmsMemberReceiveAddressMapper umsMemberReceiveAddressMapper;

    @Override
    public List<UmsMemberReceiveAddress> selectAll() {
        return umsMemberReceiveAddressMapper.selectList(null);
    }

    @Override
    public UmsMemberReceiveAddress selectById(String id) {
        return umsMemberReceiveAddressMapper.selectById(id);
    }
}
